package com._520it.crm.mapper;

import com._520it.crm.domain.Client;
import com._520it.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client record);

    Long queryPageCount(QueryObject qo);

    List<Client> queryPageDataResult(QueryObject qo);

    void invalidByPrimaryKey(Long clientId);

    void formalByPrimaryKey(Long clientId);

    void updateMS(@Param("clientId") Long clientId, @Param("managerId") Long managerId);

    void updateManager(@Param("clientId") Long clientId, @Param("managerId") Long managerId);

    List<Client> selectPotentialClient();

    Client selectByOrderBillId(Long orderBillId);

    void updateFromRivise(Client client);

    Client queryByidcardnumber(String idcardnumber);

    int insertByExcelUpload(Client client);

    void updateClient(Client client);
}